package inf102.assignment2.plugins;

import inf102.assignment2.filters.FilterableImage;

public class NewPlugIns {

	@FilterPlugIn(name = "NewPlugIns filter")
	public void testMethod(FilterableImage image){
		int[][] pixels = image.getPixels();
		
		for (int x = 0; x < image.getWidth() / 2; x++)
		{
			for (int y = 0; y < image.getHeight(); y++)
			{
				int temp = pixels[x][y];
				pixels[x][y] = pixels[image.getWidth() - x - 1][y];
				pixels[image.getWidth() - x - 1][y] = temp;
			}
		}		
	}
}
